package com.biostime.qdingding.common.api.sigin;

import java.util.HashMap;
import java.util.Map;

import com.biostime.qdingding.common.config.Global;

public final class ApiConfig {
	
	private static Map<String,String> secrets = new HashMap<String,String>();
	
	static{
		secrets.put("android", "biostime123");
		secrets.put("ios", "biostime123");
	}
	
	/**
	 * 获取加密密钥
	 * @param appkey
	 * @return
	 */
	public static String getSecret(String appkey){
		return secrets.get(appkey);
	}
	
	/**
	 * 是否需要请求验证
	 * @return
	 */
	public static boolean IsAuth(){
		return Boolean.parseBoolean(Global.getConfig("api.isauth"));
	}
}
